home *** CD-ROM | disk | FTP | other *** search
- unit MainUnit;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls;
-
- type
- TForm1 = class(TForm)
- Label1: TLabel;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- procedure Log(Str: String);
-
- implementation
- {$R *.DFM}
-
- procedure Log(Str: String);
- var
- f: Text;
- begin
- {
- System.Assign(f,'c:\trace.log');
- Append(f);
- try
- writeln(f,Str)
- finally
- System.Close(f)
- end
- }
- end;
-
- end.
-